package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PsLineInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 线路编号
     */
    @TableField("lineCode")
    private String lineCode;

    /**
     * 线路名称
     */
    @TableField("lineName")
    private String lineName;

    /**
     * 线路长度
     */
    @TableField("lineLength")
    private Double lineLength;

    /**
     * 回路长度
     */
    @TableField("backLength")
    private Double backLength;

    /**
     * 投运时间
     */
    @TableField("productDate")
    private Date productDate;

    /**
     * 电压等级
     */
    @TableField("voltageLevel")
    private String voltageLevel;

    /**
     * 起始杆号ID
     */
    @TableField("startPole")
    private Long startPole;

    /**
     * 起始杆号CODE
     */
    @TableField("startPoleCode")
    private String startPoleCode;

    /**
     * 终止杆号ID
     */
    @TableField("endPole")
    private Long endPole;

    /**
     * 终止杆号CODE
     */
    @TableField("endPoleCode")
    private String endPoleCode;

    /**
     * 塔基数
     */
    @TableField("towerBaseNum")
    private Long towerBaseNum;

    /**
     * 维修单位
     */
    @TableField("maintenanceCompany")
    private String maintenanceCompany;

    /**
     * 运行状态id
     */
    @TableField("runningStatus")
    private Integer runningStatus;

    /**
     * 运行状态name
     */
    @TableField("runningStatusName")
    private String runningStatusName;

    /**
     * 备注
     */
    private String common;

    /**
     * 是否启用（1、启用0、不启用）
     */
    @TableField("isStart")
    private Integer isStart;

    @TableField(value = "creationTime",fill = FieldFill.INSERT)
    private Date creationTime;

    @TableField("createdBy")
    private String createdBy;

    @TableField(value = "lastUpdateTime",fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdateTime;


}
